package de.eeb;

import java.security.NoSuchAlgorithmException;

import android.widget.CheckBox;
import de.eeb.common.SBWSController;

public class SBContact {
	String number;
	String name;
	CheckBox cb;

	public SBContact(String number, String name, CheckBox cb) {
		super();
		this.number = number;
		this.name = name;
		this.cb = cb;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public CheckBox getCb() {
		return cb;
	}

	public void setCb(CheckBox cb) {
		this.cb = cb;
	}

	public String getHash() {
		try {
			return SBWSController.hashAsMd5(number);
		} catch (NoSuchAlgorithmException e) {
			return "";
		}
	}

}